#导入随机数包
import random
player = int(input('请玩家输入: [0]剪刀 [1]石头 [2]布 : '))

#computer = int(input('请电脑输入: [0]剪刀 [1]石头 [2]布 : '))
#使用随机数生成
computer = random.randint(0,2)

if player == 0 and computer == 2 or player == 2 and computer == 1 or player == 1 and computer == 0:
	print('玩家胜')
elif player == 1 and computer == 1 or player == 0 and computer == 0 or player == 2 and computer == 2:
	print('平局')
else:
	print('玩家输了')